home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 747 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1019 b 

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Binary Tree and MSC/C++7.00
  5. Date: Tue, 09 Jan 1996 00:07:13 GMT
  6. Organization: Netcom
  7. Message-ID: <30f1aa73.248537088@nntp.ix.netcom.com>
  8. References: <HAKOLA.96Jan7002825@lk-hp-16.hut.fi> <1s+9WFAWzT8wEwN7@harden.demon.co.uk>
  9. NNTP-Posting-Host: ix-dc18-21.ix.netcom.com
  10. X-NETCOM-Date: Mon Jan 08  4:06:34 PM PST 1996
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. Mark Harden <mark@harden.demon.co.uk> wrote:
  14.  
  15. |>strncat doesn't always append a '\0' character.  Do it yourself with
  16. |>string [45] = '\0' and read up on strncat.
  17.  
  18. From ISO 7.11.3.2:
  19.  
  20.     The strncat function appends not more than n characters (a 
  21.     null character and characters that follow it are not appended)
  22.  
  23.     from the array pointed to by s2 to the end of the string 
  24.     pointed to by s1.  The initial charcter of s2 overwrites the 
  25.     null character at the end of s1.  A terminating null character
  26.  
  27.     is always appended to the result.
  28.  
  29.  
  30. Michael M Rubenstein
  31.